import { WeaSelect, WeaLocaleProvider } from 'ecCom';
import { ViewAttrType } from '../../../../constants/excel';
const getLabel = WeaLocaleProvider.getLabel;
export default class FieldHtmlType extends React.Component {
    render() {
        if (this.props.isField) {
            return (
                <div className="ant-row">
                    <label>{getLabel('528081','字段属性') }</label>
                    <WeaSelect ecId={`${this && this.props && this.props.ecId || ''}_WeaSelect@ix9t3l`}
                        options={[{
                            key: ViewAttrType.readonly,
                            showname: getLabel('528082','只读') 
                        }, {
                            key: ViewAttrType.edit,
                            showname: getLabel('528083','编辑') 
                        }, {
                            key: ViewAttrType.require,
                            showname: getLabel('528084','必填') 
                        }]}
                        {...this.props}
                    />
                </div>

            )
        }
        return null;
    }
}